package com.xinruke.hostels.common.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "xt_gonggao")
@Data
public class XtGonggao {
    // 公告类型：1通知公告
    public final static Byte LEIXING_TONGZHI = 1;
    //  公告类型：2政策法规
    public final static Byte LEIXING_ZHENGCE = 2;
    //状态-未发布
    public final static Byte ZHUANGTAI_WEIFABU = 0;
    //状态-已发布
    public final static Byte ZHUANGTAI_YIFABU = 1;
    //状态-修改
    public final static Byte ZHUANGTAI_XIUGAI = 2;
    //状态-已撤销
    public final static Byte ZHUANGTAI_CHEXIAO = 3;
    //状态-废除
    public final static Byte ZHUANGTAI_FEICHU = 5;
    //删除标识：1删除
    public static final int SHANCHUBIAOSHI_YOU_XIAO = 1;
    //删除标识：0未删除
    public static final int SHANCHUBIAOSHI_WU_XIOA = 0;


    @Id
    private Integer id;

    /**
     * 公告类型：
     * 1通知公告
     * 2政策法规
     */
    private Byte leixing;

    /**
     * 标题
     */
    private String biaoti;

    /**
     * 附件地址:文件名_地址格式，以，号分割
     */
    private String fujiandizhi;

    /**
     * 置顶顺序
     */
    private Integer zhanshishunxu;

    /**
     * 状态:
     * 0未发布、1已发布、2修改、3撤销、5废除
     */
    private Byte zhuangtai;

    /**
     * 展示时间
     */
    private Date fabushijian;

    private Date chuangjianshijian;

    private Date gengxinshijian;

    @Column(name = "chuangjianren_id")
    private Integer chuangjianrenId;

    @Column(name = "gengxinren_id")
    private Integer gengxinrenId;

    private Integer shanchubiaoshi;

    private String laiyuan;

    /**
     * 内容
     */
    private String neirong;
}